<?php echo $this->element('user_menu');?>      
<?php echo $this->element('banner',array('category' => $category));?>
<div id="body_container" class="group">
	    <div id="left_container">
<?php echo $this->element('advertisement',array('category' => $category));?>
        <div class="module">
             <div class="head"><?php __('Related Articles');?></div>                
                  <div class="container">
                      <ul>
                          <?php foreach($menues as $job):?>
                              <li> <?php echo $this->Html->link($job['Article']['title'], '/articles/page/'.$category . '/' .$job['Article']['id'].'.html')?></li>
                          <?php endforeach;?>
                      </ul>
                  </div>
         </div><!--module-->
                      
                      
                      
        <div class="module">
            <?php echo $this->Html->image('detailed_overview.jpg');?>
        </div>
	</div><!--left container-->
	<div id="mid_container">
	<?php if($home != ''){ //If home contains is not empty?>
		<?php if( count($home) == 1){//If home contains is only one?>
			<div class="block">
	            <div class="head">
	            	<span class="heading">
	            		<?php echo $home['Article']['title'];?>
	            	</span> 
	            </div>
	            <div class="container group">
	                    <?php echo $home['Article']['full_description'];?>
	            </div>
	       </div>  <!--block-->
		<?php }else{//if home contains is more than one?>
				<?php foreach($home as $value):?>
					<div class = "one_third column">
						<h2><?php echo $this->Html->link( $value['Article']['title'] , '/articles/page/' . $category . '/' .$value['Article']['id'].'.html');?></h2>
						<?php echo $value['Article']['short_description']; ?>
					</div>
				<?php endforeach;?>
		<?php }?>
	<?php }else if($menues != ''){//if home contains is empty just load the contains of the menues?>
				<?php foreach($menues as $value):?>
					<div class = "one_third column">
						<h2><?php echo $this->Html->link( $value['Article']['title'] , '/articles/page/' . $category . '/' .$value['Article']['id'].'.html');?></h2>
						<?php echo $value['Article']['short_description']; ?>
					</div>
				<?php endforeach;?>
	<?php }?>
</div>